<template>
  <div class='finish'>
    <van-nav-bar title="支付完成" left-text="" left-arrow @click-left="$router.replace('/')" />
    <div class="bg"></div>
    <van-cell-group inset>
      <div class="box">
        <van-icon name="checked" />
        <h3>支付成功！</h3>
        <van-button type="primary" round plain @click="$router.replace('/')">返回</van-button>
        <van-button type="primary" round @click="$router.replace('order')">查看订单</van-button>
      </div>
    </van-cell-group>
  </div>
</template>

<script>

export default {
  data () {
    return {

    }
  },
  created () {
  },
  methods: {
  },
}
</script>

<style scoped lang='less'>
.finish {
  /deep/.van-hairline--bottom::after {
    border: 0;
  }

  .bg {
    position: absolute;
    top: 46px;
    left: 0;
    width: 100%;
    height: 55px;
    background-color: #DB5310;
  }

  .van-cell-group {
    margin: 0 10px 12px;
    border-radius: 6px;
  }

  .box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 46px;

    .van-icon {
      color: #DB5310;
      font-size: 50px;
      margin-bottom: 30px;
    }

    h3 {
      color: #4A4B4D;
      margin-bottom: 60px;
    }

    .van-button {
      width: 260px;
      margin-bottom: 10px;
    }
  }
}
</style>
